Python code for Mohr’s Circle & Principal stress

Being an engineer, whether civil or mechanical, you will often use Mohr’s circle for finding the stress component at any arbitrary plane. But why not make it fun by writing