csharp and python buffer interfaces