changed hw3_3.py to support spanish characters