Cleanup code analysis lint

Eclipse/Pydev show some errors in the code analysis, see issue #613



------
I'm just starting with this.
PR is for now for testing TravisCI build which fails with a "Permission denied" on python 2.7
I added "sudo" to the call to run the nosetests