frequency boundaries in Python implementation