Python code for controlling the GoPro cameras