python3 -m py_compile script.py
Category: Python & pip
Compile script.py to bytecode and report syntax errors