Python programming for chess