Learning curve python