basic error handeling
error logging from python output