Move the function "write_asset_to_file" to "losslib.py"
The function write_asset_to_file
is repeated in most of the damage calculator codes. Since the losslib.py
is imported in the codes, this function can be deleted from all the codes and instead, included in the losslib.py
.