Rewrites source to reorder python imports