changed the first few print-statements to print-function-calls
removed unnessary imports
code cleanup: added spaces before and after = and also spaces after ,
removed unused sys.exit after raise
fixed option-guessing of page.attr