update values.py: directory creation

In ImageValue upload_in: if nested direstories were specified, python couldn't open the file