Code refactoring and segmentation from Aristides Caldeira's PySPED.
pip install pyOpenSSL==0.14
python setup.py install