*.c: Use Python's facilities for defining class and static methods.