how to create a blocks in blockchain through python .please suggest me to calulate the insurance premium