add python binding for avoid_readback
removed unused buggy function