Fixes and minor improvements

Note that I have no clue about python but this helped me a bit to read
the output :)

* [FIX] Addressing JSON data
* [IMPROVEMENT] Added logger module to add some logging