Code for raspberry pi, python/bash