serial_comm_pyserial_and_arduino sample serial communication code between pyserial and arduino that can be adapted to your arduino project. Just dowload the python and arduino comm code, run it, test it and adapt it to your project.