Code change in python client for image upload - worked as expected