'Remove path from project\'s PYTHONPATH
Return True if path was removed, False if it was not found'

def remove_from_pythonpath(self, path):

    pathlist = self.get_pythonpath()
    if (path in pathlist):
        pathlist.pop(pathlist.index(path))
        self.set_pythonpath(pathlist)
        return True
    else:
        return False
