Switch to using urllib instead of mechanize
Refactor