updating a working version of pdb_read_file.py