Add fix for compatibility with SQLalchemy 0.7.9

Change-Id: I08e96281549796753d8177a232d033197674edf4
Closes-Bug: #1314540