Code was working until linked to python - undone but still not working...