take advantage of the -c option of Python
Merge pull request #784 from tshepang/shorten

take advantage of the -c option of Python