diff --git a/wireless/Wireless.py b/wireless/Wireless.py
index d9bb653..389dee9 100644
--- a/wireless/Wireless.py
+++ b/wireless/Wireless.py
@@ -8,7 +8,8 @@ from time import sleep
 def cmd(cmd):
     return subprocess.Popen(
         cmd, shell=True,
-        stdout=subprocess.PIPE, stderr=subprocess.STDOUT).stdout.read()
+        stdout=subprocess.PIPE, stderr=subprocess.STDOUT
+    ).stdout.read().decode()
 
 
 # abstracts away wireless connection

Python3 support

Traceback (most recent call last):
  File "/home/xayon/.virtualenvs/smoothie/lib/python3.4/site-packages/rq/worker.py", line 568, in perform_job
    rv = job.perform()
  File "/home/xayon/.virtualenvs/smoothie/lib/python3.4/site-packages/rq/job.py", line 495, in perform
    self._result = self.func(*self.args, **self.kwargs)
  File "./smoothie/plugins/interfaces.py", line 28, in interfaces
    return str(Interfaces())
  File "./smoothie/plugins/__init__.py", line 37, in __init__
    self.run()
  File "./smoothie/plugins/__init__.py", line 78, in run
    self.callback()
  File "./smoothie/plugins/interfaces.py", line 20, in callback
    ifaces = [a for a in Wireless().interfaces()
  File "/home/xayon/.virtualenvs/smoothie/lib/python3.4/site-packages/wireless/Wireless.py", line 21, in __init__
    self._driver_name = self._detectDriver()
  File "/home/xayon/.virtualenvs/smoothie/lib/python3.4/site-packages/wireless/Wireless.py", line 47, in _detectDriver
    if len(response) > 0 and 'not found' not in response:
TypeError: 'str' does not support the buffer interface

diff --git a/tests/TestWireless.py b/tests/TestWireless.py
index 0ca7ec0..941d8d3 100644
--- a/tests/TestWireless.py
+++ b/tests/TestWireless.py
@@ -2,6 +2,7 @@
 
 import unittest
 from wireless import Wireless
+from wireless.Wireless import cmd
 
 
 class TestWireless(unittest.TestCase):
@@ -12,3 +13,26 @@ class TestWireless(unittest.TestCase):
     def test_import(self):
         # if this module loads, then the import worked...
         self.assertTrue(hasattr(Wireless, 'connect'))
+
+
+class TestCMD(unittest.TestCase):
+    """
+        Tests against cmd function.
+    """
+    def setUp(self):
+        self.com = cmd('echo "test_ok"')
+        self.empty_com = cmd('echo -n')
+
+    def test_cmdcomparission(self):
+        """
+            Check if we can test against the output of
+            the current test command
+        """
+        self.assertTrue('test_ok' in self.com)
+
+    def test_cmdlen(self):
+        """
+            Check if the output is > 0 chars.
+        """
+        self.assertFalse(len(self.empty_com) > 0)
+        self.assertTrue(len(self.com) > 0)

pip install -e .
parse_log_pytest
nose flake8 pytest
apt-get update apt-get install -y pandoc
3.9
pytest --no-header -rA --tb=line --color=no -p no:cacheprovider -W ignore::DeprecationWarning
exceptiongroup==1.2.2
flake8==7.2.0
iniconfig==2.1.0
mccabe==0.7.0
nose==1.3.7
packaging==24.2
pluggy==1.5.0
pycodestyle==2.13.0
pyflakes==3.3.1
pytest==8.3.5
tomli==2.2.1
-e git+https://github.com/joshvillbrandt/wireless.git@03fe4987e50aae45132ad3f4c2f6cb3ff2263adc#egg=wireless

name: wireless
channels:
  - defaults
  - https://repo.anaconda.com/pkgs/main
  - https://repo.anaconda.com/pkgs/r
  - conda-forge
dependencies:
  - _libgcc_mutex=0.1=main
  - _openmp_mutex=5.1=1_gnu
  - ca-certificates=2025.2.25=h06a4308_0
  - ld_impl_linux-64=2.40=h12ee557_0
  - libffi=3.4.4=h6a678d5_1
  - libgcc-ng=11.2.0=h1234567_1
  - libgomp=11.2.0=h1234567_1
  - libstdcxx-ng=11.2.0=h1234567_1
  - ncurses=6.4=h6a678d5_0
  - openssl=3.0.16=h5eee18b_0
  - pip=25.0=py39h06a4308_0
  - python=3.9.21=he870216_1
  - readline=8.2=h5eee18b_0
  - setuptools=75.8.0=py39h06a4308_0
  - sqlite=3.45.3=h5eee18b_0
  - tk=8.6.14=h39e8969_0
  - tzdata=2025a=h04d1e81_0
  - wheel=0.45.1=py39h06a4308_0
  - xz=5.6.4=h5eee18b_1
  - zlib=1.2.13=h5eee18b_1
  - pip:
      - exceptiongroup==1.2.2
      - flake8==7.2.0
      - iniconfig==2.1.0
      - mccabe==0.7.0
      - nose==1.3.7
      - packaging==24.2
      - pluggy==1.5.0
      - pycodestyle==2.13.0
      - pyflakes==3.3.1
      - pytest==8.3.5
      - tomli==2.2.1
prefix: /opt/conda/envs/wireless

tests/TestWireless.py::TestCMD::test_cmdcomparission
tests/TestWireless.py::TestWireless::test_import tests/TestWireless.py::TestCMD::test_cmdlen
wireless/Wireless.py
wireless/Wireless.py