def RKOCstr2code(ocstr):
    """
        Converts output of runge_kutta_order_conditions() to
        numpy-executable code.
    """
    factors = ocstr.split(',')
    occode = 'np.dot(b,'
    for factor in factors[0:len(factors) - 1]:
        occode = occode + 'np.dot(' + factor + ','
    occode = occode + factors[len(factors) - 1]
    occode = occode.replace(']', ',:]')
    occode = occode + ')' * len(factors)
    return occode
