I am trying to implement signing in python, but I can't really find any example of signing data (e.g. SIG\_1\_...) anywhere. ANyone has links to examples?

Basically, I want to sign it 'manually', using python, not cleos and etc.