Using django's call_command() instead of os.system()