Add passwdgen subprocess
Remove unused import
Add max_tasks_in_ram limit