from __future__ import print_function
import os

i = 1

for f_name in os.listdir("."):
    if f_name.startswith("con_0005"):
          print (f_name)
          os.rename(f_name, "con_0005_" + str(i) + ".nii")
          i = i + 1

7fa1d7b574801072609e7e86f03f313386dab642
<mask token>

<mask token>
for f_name in os.listdir('.'):
    if f_name.startswith('con_0005'):
        print(f_name)
        os.rename(f_name, 'con_0005_' + str(i) + '.nii')
        i = i + 1

<mask token>
i = 1
for f_name in os.listdir('.'):
    if f_name.startswith('con_0005'):
        print(f_name)
        os.rename(f_name, 'con_0005_' + str(i) + '.nii')
        i = i + 1

from __future__ import print_function
import os
i = 1
for f_name in os.listdir('.'):
    if f_name.startswith('con_0005'):
        print(f_name)
        os.rename(f_name, 'con_0005_' + str(i) + '.nii')
        i = i + 1

from __future__ import print_function
import os

i = 1

for f_name in os.listdir("."):
    if f_name.startswith("con_0005"):
          print (f_name)
          os.rename(f_name, "con_0005_" + str(i) + ".nii")
          i = i + 1
