You can use in
to test membership:
>>> for attr in attrs:
... if ('href', 'http://fls-na.amazon.com') in attr:
... print attr
...
[('rel', 'dns-prefetch'), ('href', 'http://fls-na.amazon.com')]
solved Find an element in a list of tuples in python [closed]