Interface between python and arduino for serial communication