finished printpal.py with file reading