filename white-space fix

adding a strip() when grabbing the filename; if the filename accidently has a space, line 124 fhandle = open(self.fname, self.mode) will fail