Python script that opens files previously allocating them in RAM