remove .pyc files
Fix two bugs in plate.py