Buffer-related Python crashes with newer Panda versions

Since this isn’t really related to the original topic anymore, I’ve created a new one here.