modified renren.py