Change tab to spaces and close u_file in __init__