Update Mako and add MarkupSafe dependencies in setup.py

See discussion in 3c28ff454fc2209c2df18e94e5650da35ff86c10