prep-d for python