Convert scripts to function with python3
Runnning 2to3 should work. Although, conda complains about indentation "types" being consistent, i.e., if using spaces, use spaces everywhere, or use tabs everywhere. So make sure to test the script right after modifying from 2to3