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