Added Django 1.5 compatibility - mode on file-like object is not set in django anymore
Small style change
Fix a failing test
Release a 1.5 compatible version