Replaced print by logger calls.
Added configuration of logging.
Replaced mechanize with requests, because it is Python 3 compatible.