LED python functional