Python files and battlefactory