def setup_browser(browser_type='Firefox'):
 browser = getattr(webdriver, browser_type)()
 hacks_for_phantomjs(browser)
 return browser

def setup_browser ( browser_type = 'Firefox' ) : browser = getattr ( webdriver , browser_type ) ( ) hacks_for_phantomjs ( browser ) return browser
setup the browser .