Guys / gals.. Please help me on this..

I have been going crazy to such a simple thing i can do in perl but this needs to be done in python.

I need a script that basically can list out the users (from a call to a server using an API ), the call and login is working great however i can only stdout the list help:: When the list is given the using:

print user

Works great i see

...