title: How to return objects from methods in Python?
body: <p>Can anyone describe how to return objects from a method on which further methods and attributes can be accessed? </p>
  
  <p>Example:</p>
  
  <pre><code>pizza = PizzaHut()
  order = pizza.order()
  print order.order_number
  order.cancel()
  </code></pre>