Use six for portable raw_input instead of hacks

Also added test for get_message

Signed-off-by: Tomas Hozza <thozza@redhat.com>