Perhaps add a comment that this should be used only by bean-stalk. Also, create an issue to research more and solve this. sys.path.append in python is usually a hack and means there is something wrong in the environment setup (in this case beanstalk).