Apply patch from Google Code tracker, Issue #42

Apply patch from here:
	https://code.google.com/p/sqlautocode/issues/detail?id=42

(Compatibility fixes for SQLAlchemy >= 0.8)