semi-working python parser