Whenever such work is done by a contractor, under the authority and direction of the mayor and commission, the execution for the work shall be transferred and turned over to the contractor in full payment for the work done, and the execution may be levied and collected by the finance officer, as is now provided in the case of executions for paving sidewalks.