title: Importing and using a decorator in another file
body: <p>I have a simple decorator like this below. However when I import the python file it immediately runs and I can't call the function again. How are decorators supposed to be used?</p>
  
  <pre><code>def plain_decorator(func):
      def decorated_func():
          print "Decorating"
          func()
          print "Decorated"
      return decorated_func()
  
  @plain_decorator
  def hw():
      print "Hello Decorators!"
  
  &gt;&gt;&gt; import decorator_ex2 as d
  Decorating
  Hello Decorators!
  Decorated
  &gt;&gt;&gt; d.hw()
  Traceback (most recent call last):
  File "&lt;stdin&gt;", line 1, in &lt;module&gt;
  TypeError: 'NoneType' object is not callable
  &gt;&gt;&gt; 
  </code></pre>