useful scripts for working with gala and snemi3d