[Python.NET] type check in native C# after setting in Python.NET