How to copy to clipboard in python

I will just code some javascript, perhaps that’s a better solution.