Port randomization (pep 8 last changes)

a bit more before closing the branch, pep8