Generic reverse of list items in Python,[x[::-1] for x in b]