This supports python 2.7 as well as 3