$ echo -e 'PRETTY\nPRTTEIN' | ./needleman-wunsch.py PRETTY-- PR-TTEIN