Added specific exceptions, Replaced BMConfigParser().get with BMConfigParser().safeGetInt & removed not useful exception handling Added queue.Full variable to queues Imported queue & configparser from six.moves and reverted queue.Full monkeypatch from queues.py