python3 support (not100% yet), coding style