The process_path function is unable to be serialized within the map function, leading to an error when using the mwxml.map() function