class for sending heartbeats to the server
forgot to import pickle
Starts a thread to send heartbeats every 5 seconds