Use @staticmethod where appropriate

This fixes #2. Thanks to Camille 'Kamoul0x' Mougey for reporting this.