See for instance: Mesh refinement not working?
You could Also use the mesh editor, see: https://bitbucket.org/fenics-project/dolfin/src/946dbd3e268dc20c64778eb5b734941ca5c343e5/python/test/unit/mesh/test_mesh_editor.py?at=master#test_mesh_editor.py-1,30