Refactor functions into utils and PEP8 syntax changes
forgotten import in utils
framework for stis calibrations