Move UTF-8 python header analysis to its own file