Interface between the smartphone camera and Python scripts