Changed StringIO to BytesIO

...fixing the TypeError that happens when concatenating the empty string with bytes. Initialize data in download to bytes rather than the empty string.

Fixes #2

Also fix AttributeError when script isn't supplied a command.