Modify Paddle Fluid's python code to make it could be imported in both Python2 and Python3
Created by: velconia
As discussed in #12040 (closed) , we should change all paddle code in the first round to make it could be imported in both Python2 and Python3 .