Basic implementation of a Twisted AMP bidirectional protocol