#!/usr/bin/env python
import begin

import twitterlib


# Sub-command definitions using subcommand decorator for each sub-command that
# implements a timeline display.
@begin.subcommand
def timeline():
    "Display recent tweets from users timeline"
    for status in begin.context.api.timeline:
        print u"%s: %s" % (status.user.screen_name, status.text)

@begin.subcommand
def mentions():
    "Display recent tweets mentioning user"
    for status in begin.context.api.mentions:
        print u"%s: %s" % (status.user.screen_name, status.text)

@begin.subcommand
def retweets():
    "Display recent retweets from user's timeline"
    for status in begin.context.api.retweets:
        print u"%s: %s" % (status.user.screen_name, status.text)

# Program main definition replace __name__ === '__main__' magic
# sub-commands are registered and loaded automatically.
@begin.start(env_prefix='', short_args=False)
def main(api_key='', api_secret='', access_token='', access_secret=''):
    """Minimal Twitter client

    Demonstrate the use of the begins command line application framework by
    implementing a simple Twitter command line client.
    """
    api = twitterlib.API(api_key, api_secret, access_token, access_secret)
    begin.context.api = api

@@ -347,32 +347,33 @@
 , status.text)%0A%0A
+%0A
 @begin.subcomman
@@ -546,16 +546,17 @@
 .text)%0A%0A
+%0A
 @begin.s
@@ -744,16 +744,17 @@
 .text)%0A%0A
+%0A
 # Progra

Fix PEP8 violations