make django secret key generation more compatible