I use Komodo Edit, and to deal with the imports I made a plugin that executed this implicitly in every Python file:
if 0: from gluon.globals import * from gluon.html import * from gluon.http import * from gluon.sqlhtml import SQLFORM, SQLTABLE, form_factory session = Session() request = Request() response = Response()