API: fix python3 print() error