Update sofia_pipeline.py

replaced writemoment module with updated writemoment2