python go back one using abspath
os.path.abspath(os.path.join(os.path.dirname( __file__ ), '..', 'templates'))
Source: stackoverflow.com
os.path.abspath(os.path.join(os.path.dirname( __file__ ), '..', 'templates'))