PEP-8'd afproto.py