Not a Contribution. APIError handling should be changed to so that it doesn't hide the original exception. https://stackoverflow.com/questions/24752395/python-raise-from-usage