old_contents: #!/usr/bin/python
  
  # Made by: MrTijn/Tijndagamer
  # Copyright 2015
  
  from ADXL345 import ADXL345
  from time import sleep
  
  #Create an instance of the ADXL345 class
  accelerometer = ADXL345(0x53)
  
  while True:
      axes = accelerometer.get_all_axes()
      print("x: %.3f" %(axes['x']))
      print("y: %.3f" %(axes['y']))
      print("z: %.3f" %(axes['z'])) 
      sleep(5)
  
new_contents: #!/usr/bin/python
  
  """
  Example script for ADXL345.py
  Made by: MrTijn/Tijndagamer
  Released under the MIT License
  Copyright 2015
  """
  
  from ADXL345 import ADXL345
  from time import sleep
  
  #Create an instance of the ADXL345 class
  accelerometer = ADXL345(0x53)
  
  while True:
      axes = accelerometer.get_all_axes()
      print("x: %.3f" %(axes['x']))
      print("y: %.3f" %(axes['y']))
      print("z: %.3f" %(axes['z'])) 
      sleep(5)
  
subject: Update example.py description