finished python parser part