Fix python3.x scoping issues with removed 'de' variable
Fix python3.x scoping issues with removed 'de' variable

In python3.x the 'de' variable will be removed from the
scope after the except block exits (if it ever is entered)
so we need to use a different variable name to ensure that
it will not be deleted so we can use it later.

This avoids errors of the format:

UnboundLocalError: local variable 'de' referenced before
                   assignment

Change-Id: I9ea2bd6b3a8c392f8d27b0130dd6b7683fc44e7c

akash1808/oslo.db,magic0704/oslo.db,openstack/oslo.db,JioCloud/oslo.db,openstack/oslo.db,varunarya10/oslo.db