fix staticmethod/classmethod unwrapping on python <2.7