Lookup Function In Python Practice