Modified reversePy