[IMP]Refactered code of asset py file.