move frequency support back to python