
import sys
import os

from pikalang.interpreter import PikalangProgram

def load_source(file):
    if os.path.isfile(file):
        if os.path.splitext(file)[1] == ".pokeball":
            with open(file, "r") as pikalang_file:
                pikalang_data = pikalang_file.read()

            return pikalang_data

        else:
            print("pikalang: file is not a pokeball", file=sys.stderr)
            return False

    else:
        print("pikalang: file does not exist", file=sys.stderr)
        return False


def evaluate(source):
    """Run Pikalang system."""

    program = PikalangProgram(source)
    program.run()


from __future__ import print_function

import sys
import os

from pikalang.interpreter import PikalangProgram

def load_source(file):
    if os.path.isfile(file):
        if os.path.splitext(file)[1] == ".pokeball":
            with open(file, "r") as pikalang_file:
                pikalang_data = pikalang_file.read()

            return pikalang_data

        else:
            print("pikalang: file is not a pokeball", file=sys.stderr)
            return False

    else:
        print("pikalang: file does not exist", file=sys.stderr)
        return False


def evaluate(source):
    """Run Pikalang system."""

    program = PikalangProgram(source)
    program.run()

Add proper printing for py2
Add proper printing for py2

+ 
+ from __future__ import print_function
  
  import sys
  import os
  
  from pikalang.interpreter import PikalangProgram
  
  def load_source(file):
      if os.path.isfile(file):
          if os.path.splitext(file)[1] == ".pokeball":
              with open(file, "r") as pikalang_file:
                  pikalang_data = pikalang_file.read()
  
              return pikalang_data
  
          else:
              print("pikalang: file is not a pokeball", file=sys.stderr)
              return False
  
      else:
          print("pikalang: file does not exist", file=sys.stderr)
          return False
  
  
  def evaluate(source):
      """Run Pikalang system."""
  
      program = PikalangProgram(source)
      program.run()
  
Add proper printing for py2
## Code Before:

import sys
import os

from pikalang.interpreter import PikalangProgram

def load_source(file):
    if os.path.isfile(file):
        if os.path.splitext(file)[1] == ".pokeball":
            with open(file, "r") as pikalang_file:
                pikalang_data = pikalang_file.read()

            return pikalang_data

        else:
            print("pikalang: file is not a pokeball", file=sys.stderr)
            return False

    else:
        print("pikalang: file does not exist", file=sys.stderr)
        return False


def evaluate(source):
    """Run Pikalang system."""

    program = PikalangProgram(source)
    program.run()

## Instruction:
Add proper printing for py2
## Code After:

from __future__ import print_function

import sys
import os

from pikalang.interpreter import PikalangProgram

def load_source(file):
    if os.path.isfile(file):
        if os.path.splitext(file)[1] == ".pokeball":
            with open(file, "r") as pikalang_file:
                pikalang_data = pikalang_file.read()

            return pikalang_data

        else:
            print("pikalang: file is not a pokeball", file=sys.stderr)
            return False

    else:
        print("pikalang: file does not exist", file=sys.stderr)
        return False


def evaluate(source):
    """Run Pikalang system."""

    program = PikalangProgram(source)
    program.run()
