Check https://github.com/shbhuk/barycorrpy/pull/34
1) Add build/ to gitignore and remove from github.
2) Do not check for leap_update in loop for every iteration, instead just check for max(JDUTC) before the loop runs, and then set leap_update = False for every iter.
3) Add timeout of 10s for leap update from USNO
Sample script and unittest checked.