clean up of euler.py