pyjarray memory leak fixes