Modified fluxcal_gem.py for error propagation