cleaned for python