Cleaning up shaders.py to avoid overriding a built in function and to print error logs better.