Create pyinfo.py

Note the wholesale borrowing from https://gist.github.com/branneman/951825#file_pyinfo.py