Python Modulo to Heart Rate Variability Analysis