Fix failing tests for python 3.
Fix failing tests for python 3.

johshoff/pgcli,yx91490/pgcli,n-someya/pgcli,yx91490/pgcli,dbcli/pgcli,d33tah/pgcli,joewalnes/pgcli,w4ngyi/pgcli,darikg/pgcli,suzukaze/pgcli,suzukaze/pgcli,dbcli/pgcli,darikg/pgcli,TamasNo1/pgcli,koljonen/pgcli,joewalnes/pgcli,d33tah/pgcli,koljonen/pgcli,n-someya/pgcli,johshoff/pgcli,TamasNo1/pgcli,w4ngyi/pgcli