def restore_pymysql():
    """Restores pymysql"""
    try:
        import pymysql
    except ImportError:
        pass
    else:
        setattr(pymysql, 'connect', getattr(pymysql.connect, '__wrapped__',
            pymysql.connect))
