Turn on anti aliasing, add setting.DEBUG_SHAPES
Add midpoint and snapping to points
Split document.py into separate files