Trying to convert TMX loading Python Code into C# - C#