pyfirmata is a package that can make a connection between Arduino and Python, this post is a brief tutorial on using pyfirmata and create an interesting small project.
Installing and Loading Firmata
Install Script
pip install pyfirmata
Before we can code with Python, we need to load a format framework