Make sure to open your local files like this:
f = open('something.mp3', 'rb')
Using open('asd.mp3')
will treat the file as text and result in corruption. Now, I can't be sure this is the problem, but without more context this is my closest bet.