Use @staticmethod decorator instead of fname = staticmethod(fname)

iirc since python 2.2 we could use  @staticmethod