Add receive function to transmit.py

* Wrapper for connection.recv().