The try/except was left over from when this code was elsewhere and it didn't know whether the app was an `Application` or a `RemoteApp`, so it was checking for whether it had an attribute called `get_xmlns_map`.