In lookup.py, fix the KeyError issue in get_code: when the name is not found the function should return None instead of raising. Use dict.get() for the fix.
