factory.py: add user and hosts keys to global_env