bug workaround. added/modified debugging prints

worked around bug that crashes blender when extending contours.
crash would happen when doing bmesh.ops.remove_doubles().
replaced code with simple doubles-testing code.