partial work for python3