Thanks a lot!
Ah I initially stored the maps in numpy arrays but changed it and forgot to remove the import and I didn't know that it was large , thanks a lot!