Identify platform by using sys.platform or os.uname()[0] instead of os.name
- Currently the platform is identified by using os.platform i.e. in src/common/helpers.py
- This makes OSX and Linux both appear as Posix, leading to failures in the case above. Example: in the case of Posix is attempted to be used with /dev/dsp which does not exist in OSX.
- Try the more detailed sys.platform, which would lead to linux, posix, win32 etc. -- https://docs.python.org/3/library/sys.html#sys.platform -- Also useful could be: https://docs.python.org/3/library/os.html#os.uname or https://docs.python.org/3/library/platform.html#module-platform