no more errormessages because of missing objectpages
Cleaned up prints and use python logging.