Works with Python2.7 and Python3.4