[py] fix compilation warning in py-source