First draft of transmit function based on standard python
Moving on with the host program