assignment 1 - python 2 perl