Updated to pipe output from advanced migrations to sql, also reformatted all python sources with PyDev.