removed matplotlib and httplib imports