Fixed a typo in the flatten function docstring

Changed 'flattned' to 'flattened' in the flatten function docstring.