[py] [test] make sure freq2note rounds to nearest integer midi note