Add support for methods in log.py
Add support for classmethod