# Write function to open file and preprocess.
def preprocess(filename):
  source = open(filename, "r")
  
  # Find any import statements and replace with relevant files.
  
  # Remove comments.
  
  # Remove unnecessary whitespace.

@@ -95,24 +95,48 @@
 me, %22r%22)%0A  %0A
+  # Remove comments.%0A  %0A
   # Find any
@@ -187,16 +187,103 @@
  files.%0A
+  for line in source :%0A     if %22import%22 in line:%0A        line = line.replace('.' , '')%0A
   %0A  # R

Update preprocessor.py