PyAMF provides Action Message Format (AMF) support for Python that is compatible with the Flash Player 6 and newer.

RTMPy uses this to decode/encode the RTMP packets.

See http://pyamf.org