Enable F40X checking

Clean up imports due to F401 and F403 checks.
F401  'module' imported but unused
F403  unable to detect undefined names with wildcard import

Change-Id: I487edb157de1a6babc7ad8a3fb65f195e476c490
Replace deprecated method assertEquals

TestCase.assertEquals is deprecated since Python 2.7, so need use new
method name assertEqual.
See http://docs.python.org/2/library/unittest.html#deprecated-aliases

Change-Id: Iae9074f2afe2a572b60f6192aa6c871db42360ec
Merge "Enable F40X checking"
Merge "Replace deprecated method assertEquals"