Python Program to do brightness on Raspberry Pi