small python parser