Updated lookup.py