fix py2.7 errors with bealign, and add a progress indicator into bealign