using @classmethod instead of @staticmethod in RPi