fix for MechanicalSoup

Thank you for your great library.
Please check my modify.