def create_product(product_id=None,product_name=None):
	if product_id is None or len(product_id) <= 3:
		product_id = random_key(10)

	product = Product(product_id=product_id,product_name=product_name)
	product.put()
	import logging
	logging.error(product.properties())
	return product