Set up Python environment.