Better/more logging/debug plz
More pythonic