don't overwrite record.msg
Python 3 doesn't have unicode()
Merge pull request #3 from lilydjwg/master

some fixes