coding conventions and steps towards python3 support