Using python for creating a real-time EQ

i guess technically it wouldn’t be an EQ, basically i was wondering if there was a script or a module that could return the “level” or volume of different frequency bands, I have seen a few here and there but none of them seem to work(or they dont share code).

any suggestions???

Thank you
-me