Fix pep8 errors and remove unnecessary tests.

Also remove .idea directory.

Change-Id: I40ae15dd264722dd810b7a3d1db5b555e5b0c3f0