Fixed a bug in the OSX send.py