up history length and something err other about python