Switched from the 'mechanize' library to 'requests', and adapting the requests to JSON.