Reliable download manager in python