Parse functionality for Python