limit pyhistory