Migrate Sas To Python Conversion