Use loader to load file content and parser to parse
Use codecs module to prevent unicode decode errors