file -L -- "$1" | sed -ne "s/\(.*: .* script\).*/\1/p"
# foo.py: Python script, Unicode text, UTF-8 text executable
# foo.py: Python script
