Do not add empty lines to python cli history.

Signed-off-by: Tomasz CEDRO <CeDeROM@tlen.pl>