[py] avoid resizing py-source output