def contenttype():
 return random.choice(('image/jpeg', 'text/html', 'audio/aiff', 'video/avi', 'text/plain', 'application/msword', 'application/x-gzip', 'application/javascript'))

def contenttype ( ) : return random . choice ( ( 'image/jpeg' , 'text/html' , 'audio/aiff' , 'video/avi' , 'text/plain' , 'application/msword' , 'application/x-gzip' , 'application/javascript' ) )
random mime type .