Created function to create dict and overlook vars containing None