As I mentioned before, this sort of thing is much more efficient to use with a dictionary.  Make a method for each operation, and use the target fileextheader values for the keys and the methods for the values.  Then you can just do self.ops[fileextheader]()