cli.py: Adds byte array support for selection