split py2 and py3 - updated better py2 template