Hi,
It is very hard to say with no information about what you were doing.
Is it actually your python process that was eating up all the memory or something else?
If it was the python process, what were you doing when it happened?