Python chess model