fixing Exception KeyError: KeyError(4427427920,) in <module 'threading'...