First part of packet receive code.
Parsing of discover replies working
Support pypy as well as Python 2 and Python 3