extended python script + arduino sketch