old_contents: # -*- coding: utf-8 -*-
  '''
  Various network validation utilities
  '''
  
  import re
  
  def mac(mac):
      '''
      Validates a mac address
      '''
      valid = re.compile(r'''
                        (^([0-9A-F]{1,2}[-]){5}([0-9A-F]{1,2})$
                        |^([0-9A-F]{1,2}[:]){5}([0-9A-F]{1,2})$)
                        ''',
                        re.VERBOSE|re.IGNORECASE)
      return valid.match(mac) is not None
  
new_contents: # -*- coding: utf-8 -*-
  '''
  Various network validation utilities
  '''
  
  # Import python libs
  import re
  
  
  def mac(addr):
      '''
      Validates a mac address
      '''
      valid = re.compile(r'''
                        (^([0-9A-F]{1,2}[-]){5}([0-9A-F]{1,2})$
                        |^([0-9A-F]{1,2}[:]){5}([0-9A-F]{1,2})$)
                        ''',
                        re.VERBOSE | re.IGNORECASE)
      return valid.match(addr) is not None
  
subject: clean up net validator