[utils] change extract_attributes to work in python 2
[youtube-dl] / bin /
drwxr-xr-x   ..
-rwxr-xr-x 91 youtube-dl