General purpose (python-like) syntax parser