SUPER PYTHON CODE ADDED FOR CAMERA SUPPORT AND ERROR HANDLING.