Install plugin for Jinja2 template engine for Python.

http://jinja.pocoo.org/
Enable "hot exit".
Set default tab size to 4 spaces and translate tab characters to spaces.

Sublime Text 2 documentation on indentation settings:
http://www.sublimetext.com/docs/2/indentation.html