It seems that six library does not have a tuple type definition and I am currently looking to write the code below in a way that works with both Python 2 and Python 3.
return (type(key) in (types.TupleType, types.ListType)
PS. Don't blame me for that line, I only try to port it, is not written by me ;)