use """ everywhere instead of '''
use np.inf instead of arbitrary 1e10