old_contents: import os
  import platform
  
  
  class Command(object):
      def __init__(self, mpf_path, machine_path, args):
          del mpf_path
          if platform.system() == 'Windows':
              os.system('start "MPF Core" mpf mc {} {} -p'.format(
                  machine_path, ' '.join(args)))
              os.system('start "MPF Media Controller" mpf core {} {} -p'.format(
                  machine_path, ' '.join(args)))
  
          else:
              # TODO I can't figure this out for non-Windows.
              # It's hard because we're accessing mpf via the console_script
  
              pass
  
new_contents: import os
  import platform
  
  
  class Command(object):
      def __init__(self, mpf_path, machine_path, args):
          del mpf_path
          if platform.system() == 'Windows':
              os.system('start "MPF Core" mpf mc {} {} -p'.format(
                  machine_path, ' '.join(args)))
              os.system('start "MPF Media Controller" mpf game {} {} -p'.format(
                  machine_path, ' '.join(args)))
  
          else:
              if os.fork():
                  os.system('mpf game {} {}'.format(
                      machine_path, ' '.join(args)))
              else:
                  os.system('mpf mc {} {}'.format(
                      machine_path, ' '.join(args)))
  
subject: implement mpf both for linux