I’ve been having a play around with Python today trying to implement some base58 encoding / decoding. I’m by no means a Python expert but this is what I came up with (based on this PHP flic.kr super quick note):

Feel free to fork it or offer suggestions for improvements in the comments :)