make heartbeat.py importable