Python basic parser