Python solved