In modules.py import bitstring and use it.

Downloaded bitstring package and installed:
$  cd /Users/stevebaker/Documents/pythonProjects/bitstring-3.0.2
$  python3 setup.py install