I've come across the following code in a Python script
from pprint import pprint
why not simply import pprint
?
Unless the module pprint contains a function called pprint which is being aliased as pprint (surely, this must be the definition of madness?)