Get pub key parameters. Support MPI.

Also cleans up some pep8 problems.