Added cpl error codes to errcheck functions
Using functools.partial for cpl error codes selection
Merge pull request #3 from yellowcap/raster

Added cpl error codes to errcheck functions