Python3 Compatible and loop till pressing q