updated pledges.py