Fixes local tests in: test_quantumprogram.py (#37)
Fixes local tests in: test_quantumprogram.py (#37)

* Fixes local tests: test_quantumprogram.py
* Little clean up and refactor
QISKit/qiskit-sdk-py,QISKit/qiskit-sdk-py,atilag/qiskit-sdk-py,atilag/qiskit-sdk-py,ChristopheVuillot/qiskit-sdk-py,QISKit/qiskit-sdk-py,atilag/qiskit-sdk-py,ChristopheVuillot/qiskit-sdk-py,ChristopheVuillot/qiskit-sdk-py