Fix python sample path

Resubmitting change in #2058 to correct branch;