Fix pep8 and some unit tests in N1KV plugin