'Add path to project\'s PYTHONPATH
Return True if path was added, False if it was already there'

def add_to_pythonpath(self, path):

    pathlist = self.get_pythonpath()
    if (path in pathlist):
        return False
    else:
        pathlist.insert(0, path)
        self.set_pythonpath(pathlist)
        return True
