first non-cleaned version of the python code and examples