Python Mechanize course registration script