Use instance variables rather than globals (i.e. class variables)
Drop external dependencies : httparty and trollop