You can make new map scripts import and use another python file as library yes;
There is also a CvMapGeneratorUtil.py (within Vanilla Civ's Python folder) which contains the basis classes for all the fractal-based maps (fractal, continents, big&small, etc); You could take a look at generateTerrain and generateTerrainAtPlot functions there;
Also the RandomScriptMap.py has a collection of script-variants (fractal, archipelago, terra, pangea, hemispheres...). For all of them i had subclassed the standard fractal generator from the CvMapGeneratorUtil; So by adding overrides for the geerateTerrain functions in there you would get the changes into a few different world types at once as well, without risk of screwing other standard scripts that might be using the same library.