completed python version of 1.1