update pyAtlas with new code taking from pyEphestos