Fix useless and breaking import in test_mw_api

My IDE (PyCharm) stupidly added some useless import,
which caused the TravisCI build to fail. Remove bad import.