pymorse is written in Python and allows you to quickly convert strings to morse code.