Need to configure API for the handler, it's not finding the Middleware config

PR for https://github.com/bugsnag/bugsnag-python/issues/7