Unify interface. Use python logger. Optimize.