Documentation? We don't need no stinking documentation!
Try this variant:
variable = somefunction(inputParameter)
# the next line is a temporary debug statement
print "variable has the following attributes:", dir(variable)
Or this one:
variable = somefunction(inputParameter)
help(variable) # temporary debugging statement
Or this one:
help(somefunction)
Or even this:
variable = somefunction(inputParameter)
print "the type is", type(variable) # temporary debugging statement
A lot of API's use built-in objects, so quite often you don't even need anything more complicated than:
variable = somefunction(inputParameter)
print "variable is", variable
Using a Python-aware IDE like Eclipse PyDev might help too, but it's been a while since I've personally used it so I can't say off the top of my head what feature you want. Honestly, Python is so easy to use, you don't really need an IDE at all (of course this is just my opinion on something that's purely a matter of personal taste).