deallocation functions in giftwrappers and the the C to Python interface