Create shell environments with Python