Complete python conversion