Refactor parse_config to use fileobject