Replace static_file by open call