Working python parser