Fixed some bugs in shapes.py and ptheorem.py