Trying to create a build monitor with Python on a Rasberry Pi