more python conversion