I used this to print the current song in my tmux status-bar. I encountered a problem with the encoding, not being able to print some foreign characters (åäö in my case) in song titles.
I solved this by:
PYTHONIOENCODING=utf_8 pytify -c
Not sure there's a configuration issue with my system or the script uses another encoding (haven't been able to find that in the source though). Anyway, if anyone wants to use it for the same purposes that's how I solved it.
https://www.reddit.com/r/programming/comments/5hlrcu/spotify_as_a_cli_remote_search_for_and_start_songs/db1yhiv/