No need to use which on a .py file
Merge pull request #5826 from edx/ned/no-which-dot-py

No need to use which on a .py file