cleanup pt. 1: getting rid of directory
error handling: os.makedirs enclosed in a try block
further cleanup