Fix except block indentation and import exception

Fixes https://github.com/paypal/rest-api-sdk-python/issues/51 and https://github.com/paypal/rest-api-sdk-python/issues/52.