removed unused python code