Started conversion to compliant python