redo python conversion