Python program to control the DC motor on raspberry pi