updated peer.py