Fixed bugs in the err_code function

err_int return variable should have been err_in.

Fixed in both the Exercises and Solutions directory.
Fixed bug in python script generating err_code()

Fixed typo in variable name: err_int -> err_in.