You could control you Servo Motor using this code. Here's a Quick Setup Tutorial:
- Make sure to remember at which Port have you Uploaded the ".ino" File using Arduino IDE.
- In ".py" file at line no. 4 you have to update the COM according the port you have uploaded.
- In Python file at line no. 5 You have to Input the Pin Number on Arduino Uno.