Formatting and style
Print default encoding in print_versions
Fix rendom faulures in test_nestedtypes.py

The issue affects python 3.3 and newer and it is related tho the new
"Hash randomization" feature.
PEP8