moved call to python into first line