Fixed some details for the new python version