From CCP4 wiki
→Simple rules for Scheme to Python translations: changed word order for clarity
Here some simple rules how to translate from Scheme to Python. To translate the other way around, i.e. Python to Scheme, just turn the rules around:
replace all '-' with '_' (except in equation when you need arithmetic '-' minus signs)# move the brackets around the argument(s)# separate multiple arguments by commas rather than spaces# replace 'define' for functions with 'def' and for assignments with an '='
# Make sure to use indentation for the function content [Python is indentation sensitive] and a ':' after the function definition.