Making it python2.7 and python3.4 compatible