python implementation of quasi-anharmonic analysis