updating beanstalkc.py