fixed changes in rdd.py and context.py