def rehash():
 return (win32gui.SendMessageTimeout(win32con.HWND_BROADCAST, win32con.WM_SETTINGCHANGE, 0, 'Environment', 0, 10000)[0] == 1)

def rehash ( ) : return ( win32gui . SendMessageTimeout ( win32con . HWND_BROADCAST , win32con . WM_SETTINGCHANGE , 0 , 'Environment' , 0 , 10000 ) [ 0 ] == 1 )
run pyenv rehash to update the installed shims .