From http://stackoverflow.com/questions/11063458/python-script-to-copy-text-to-clipboard