BPM detection tool written in Python