replaced urlib with requests lib in heartbeater