Removing the ugly backslashes here would be useful, brackets are safer:

    from numpy import (exp, log, asarray, arange, newaxis, hstack, product, array,
                       zeros, eye, poly1d, r_, rollaxis, sum, fromstring, isfinite,
                       squeeze, amax, version, reshape)