Sentence:  The episode also opens with an inspired bit of business for Homer, who blithely refuses to acquiesce to an elderly neighbor's utterly reasonable request that he help make the process of selling her house easier by wearing pants when he <WSD>gallivants</WSD> about in front of windows, throw out his impressive collection of rotting Jack-O-Lanterns from previous Halloweens and take out his garbage, as it's attracting wildlife (cue moose and Northern Exposure theme song). 
Meaning of the word marked with <WSD> tags:  To roam about for pleasure without any definite plan.