Make cice_monthly_mean.py and refactoring to share code.