First version passing contour tests on py3
Passing test locally with python 2 and 3