add fo_reverse to python backend