I tried to generate permutations by using itertools module but its not working.

<itertools.permutations object at 0xa917c5c>

Why is it so? and how do I make it work properly?

It works properly, but maybe not as you expect it.

It gives back a generator, not a list

list(permutations(some sequence))
for perm in permutations(some sequence):
    print perm