Modified generic algorithm
Modified generic algorithm

Like the last commit, this one is not going to change anything. These
are  just some modifications based on pep8.

PMEAL/OpenPNM,stadelmanma/OpenPNM,TomTranter/OpenPNM,amdouglas/OpenPNM,amdouglas/OpenPNM