Does anyone know how to use the subprocess.call to assign the ouput of a command to a string.

At the moment it only assigns the return code ??

>>> hostname = call(["hostname", "-d"])
lon3.corp.rackspace.com
>>> print hostname
0

Thanks,