Added the nested operators in python3