remove trailing slash and add python path