Adds the valid attribute to item.
Removes unneccesary logging.
Fixes problems with preinstalled python.