[FRONTEND] Make sure to hold the gil when creating python objects (#726)
[FRONTEND] Make sure to hold the gil when creating python objects (#726)

Without this patch, a debug version of python complains that:
```
Fatal Python error: Python memory allocator called without holding the GIL
Python runtime state: initialized
```
openai/triton,openai/triton