Terminal to test python script in HA OS

I got this python script for an IR-sensor reader for my heater. It’s working brilliant on my Linux computer with python. But I want to run it directly on my raspberry pi 4 with home assistant OS. How can I get bash access so I can test the python script and find what USB device to point to?

Settings → System → Hardware → 3 dots in upper right corner → All Hardware