Count from 1 instead of 0 for delay

* We were counting from 1 for our check functions but from
0 for our delay functions.
* Count from one for both delay and check functions
reorganize retrypy.py
update get_dummy_func