from __future__ import division

def load(fn='output.txt'):
    with open(fn) as f:
        return float(f.read())

def score(orig, relaxed):
    return 1.0 - relaxed / orig

from __future__ import division

def load(fn='output.txt'):
    with open(fn) as f:
        return float(f.read())

def score(orig, relaxed):
    return relaxed / orig - 1.0

fix sign on error quantification