Refactored ecosystem.py, still main Python file, but with no extra classes