use mechanize to solve redirection problem