[1.7.x] Removed unnecessary absolute_imports.

Backport of e0cf030194 from master