fixing cheking None, and PEP8 statements.
Merge branch 'master' of github.com:arnaldorusso/PyPAM