<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:

def browseprofile(profilelog):
    '''
    Browse interactively a profile log in console
    '''
    print('Starting the pstats profile browser...\n')
    try:
            browser = ProfileBrowser(profilelog)
            print >> browser.stream, "Welcome to the profile statistics browser. Type help to get started."
            browser.cmdloop()
            print >> browser.stream, "Goodbye."
    except KeyboardInterrupt:
            pass