Here's how you can execute a one line Gremlin...
>>> from bulbs.rexster import Graph
>>> g = Graph() # create the Graph object
>>> script = "g.V.range(start,end)" # set a one line script
>>> params = dict(start=0, end=9) # put function params in dict
>>> vertices = g.gremlin.query(script, params) # execute the script in DB