Implement access to enumpure method in Python.