Django version of portalocker