RPM calculator in Python/QT