added contour.py
added file on exceptions