Added python port of cas_parse