Python and hardware integration - Raspberry pi