As this is just a list of values, could you just do `', '.join(b2g_vsize_list)` here instead of checking the index? Also, you may want a final newline at the end of the file.