Convert to dual python 2.7 and python 3.4