Convert a list of 64 hex keys to private import format
You should consider using this (or a similar) python library to import your keys, as straight conversion from hex to base58 can have a few gotchas: 

https://github.com/vbuterin/pybitcointools

Check the examples in the README and you should be on your way to making your script.