implemented cell/pool rollback in Python