Coredefs removal sequal and Python3 compability

Please see the attached commits. It appears that (MIN_)PROTO_VERSION was overlooked when coredefs was removed. There is also a `from bitcoin.coredefs import *` statement in net.py not yet addressed.