Is it possible in Python to allocate heap memory during process creation?

I am running a python program that processes a large dataset. I am running into Memory error as there is not enough memory in the machine where I am running. Is it possible to allocate heap memory at the start of python process, similar to the way heap memory allocation is done in Java with options like Xmx, Xms