You can use these little scripts in command line, so you don't have to program a single line (also run in Windows if you have Python), or easily modify them if you want:
For your private key example:
$ ./bitcoin-wif-from-private-key.py 00010966776006953D5567439E5E39F86A0D273BEED61967F6
privkey = ...
I had named my script bitcoinrpc.py and had the import bitcoinrpc. Naturally it couldn't find the package. Renamed the script and it works.
Lesson: DO NOT have a file of the same name as the package you are trying to import.