Fixed a few bugs in rop.py