Euler Fix for python2