a basic chat for terminal written in python