python heartbeat is better