Something in your code that is allocating a lot of objects and not releasing them. This could be in your Python code or in a library that you’re using.
You’ll need to do a bit more research to try and find out the root cause of this issue.
For an idea of some of the types of things you may want to look at, see the thread at App consumes too much memory - probably bad query?