- use a python logging library to output a log file - explicitly handle errors in the python code, eg. if the API request returns a null value rather than a json - should make a dev branch, - and shouldn't running the code from my development directory, should copy it to a production directory - encrypt the environment keys in case my raspberry pi is hacked into