I occasionally get Python popping up and occupies all my CPU
I have no clue why this is happening, because I almost never run Python on my laptop.
Ask Different is a question and answer site for power users of Apple hardware and software. It only takes a minute to sign up.Sign up to join this community
Python with a capital P is the launcher app, found at /System/Library/Frameworks/Python.framework/Versions/2.7/Resources/Python.app
This is used when a python script uses MacOS GUI components, such as creating a window, dialog or file panel.
It's likely that some process is calling a python script to do something. What that is and why it's using so much CPU is unclear without more analysis. In Activity Monitor, you can see what files the process is using, which would be a place to start.