A P2P network framework by python