You can use staticmethod decorator, look at the code below for instance:
class MyClass(object):
@staticmethod
def the_static_method(y):
print y
MyClass.the_static_method(2) # outputs 2
For Python version 2.2 and 2.3:
class MyClass(object):
def the_static_method(y):
print y
the_static_method = staticmethod(the_static_method)
MyClass.the_static_method(2) # outputs 2
Hope this helps. Happy learning.