es.py: added support retry_time to constructor. Closes #408