Adding PyPi metadata to the library.
Fixing bug where it was running retries even when successful.