python: import from relative path
===

I am trying to import from a folder named template which is structured like

    controller/
             /__init__.py
             /login.py # <- I'm here
    template/
           /__init__.py # from template import *
           /template.py # contains class Template


python seems to be able to see the need class but fail to import it, this is login.py code

    import webapp2
    
    import template
    
    class Login(webapp2.RequestHandler):
    #class Login(template.Template):
    
    	def get(self):
    		self.response.out.write(dir(template))
    
prints

    ['Template', 'Users', '__builtins__', '__doc__', '__file__', '__loader__', '__name__', '__package__', '__path__', 'jinja2', 'os', 'template', 'urllib', 'webapp2']



switched import line


    import webapp2

    import template

    #class Login(webapp2.RequestHandler):
    class Login(template.Template):

    	def get(self):
		self.response.out.write(dir(template))

prints

    class Login(template.Template):
    AttributeError: 'module' object has no attribute 'Template'

what am I doing wrong? thanks