import re


def fix_octal(octal_str) :
#---------------------------------------------------------------------------------------------------
   """
   Fixes anything octal, including +/- prefix and letter suffix to use "0o"
   """
   m = re.match(r"([+-]?)0(\d+.*)", octal_str)
   if m:
      # Make octal python 3 compatible
      return m.group(1) + "0o" + m.group(2)
   else:
      return octal_str