Added python3 compatibility on send.py