Fixes for Warnings

FIx for warnings raised during testing. Also fix for `-q`/`--quiet` for some versions of python in attempts to supress warning messages.