initial code w/ working PLY parser