Fix cookie parsing and get() on NoneType object
Import django deps and events modules when django is installed
Merge pull request #1 from smvv/master

Fix cookie parsing and get() on NoneType object