Fix lack of declaration of staticmethod