I just tried to reproduce this issue, but get similar values for Python2.7 and 3.7 in both use cases (~2.6 and ~26.1).
Could you update to the latest stable release (1.4) in your Python3.7 environment and rerun the code?
That being said, note that Python2.7 support is dropped and you shouldn’t use it anymore.