Added python socket errors to send