Adding some safeguards so tests do not fail because the process was not ready on time.
Adding some safeguards so tests do not fail because the process was not ready on time.

fouzelddin/py4j,phact/py4j,jonahkichwacoders/py4j,njwhite/py4j,jonahkichwacoders/py4j,bartdag/py4j-eclipse,scott1028/py4j,phact/py4j,scott1028/py4j,jonahkichwacoders/py4j,fouzelddin/py4j,njwhite/py4j,phact/py4j,njwhite/py4j,scott1028/py4j,fouzelddin/py4j