Simple Python Contouring Program