There are 2 ways to solve this task, actually.
1st way is a bit more difficult but more efficient.
Read
https://docs.microsoft.com/en-us/windows/win32/dataxchg/using-the-clipboard#copying-information-to-the-clipboard
and implement this in python module.
This was done for perl and worked for
Here is the better tcl/tk version of script which then could be reused with
tkinter to solve the task
#
# rotate image in clipboard
#
# TBD - user-friendly - message box if no image in clipboard, also - "ready"
message
#
# most code from here - http://wiki.tcl.tk/15647
#
package require Tk
pack