Cartograph is a Python package for drawing OpenStreetMap compatible map tiles. The tiles it produces can be viewed as a slippy map or by various apps such as Maverick.
Cartograph can be installed using pip
pip install cartograph
Documentation is available online, including basic usage and a more extended tutorial.