Create final_pi_code.py

The file which is the combination of Matthew's code, Sepehr's code, and Ryan's code to be run on the raspberry pi itself.