strip trailing whitespace, convert tabs to spaces
use requests instead of httplib