changed md5 to work with django 1.7