def opener(some_file, command):
 print(('\nOpening %s\n' % some_file.strip('../')))
 os.system(('%s %s' % (command, some_file)))

def opener ( some_file , command ) : print ( ( '\nOpening %s\n' % some_file . strip ( '../' ) ) ) os . system ( ( '%s %s' % ( command , some_file ) ) )
print to screen what file is being opened and then open the file using the command method provided .