from unityagents import UnityEnvironment
env = UnityEnvironment(file_name='3DBall')
env.reset()
This code freezes python client 4 of 5 times. If env.reset() is called with some delay (~2 seconds), everything will work as expected. This may happen because python client starting communication before game is fully loaded.
Tested on Python 3.6 / Jupyter / Windows 10 x64.