Added SessionAuthenticationMiddleware to base settings
Updated settings to support python 3