Default to development if debug mode is on [Fixes #19]
Fix python2.6 support