old_contents: import datetime
  
  from firebase.firebase import FirebaseApplication, FirebaseAuthentication
  
  
  if __name__ == '__main__':
      SECRET = '12345678901234567890'
      DSN = 'https://firebase.localhost'
      authentication = FirebaseAuthentication(SECRET, True, True)
      firebase = FirebaseApplication(DSN, authentication)
  
      firebase.get('/users', None,
          params={'print': 'pretty'},headers={'X_FANCY_HEADER': 'very fancy'})
  
      data = {'name': 'Ozgur Vatansever', 'age': 26,
              'created_at': datetime.datetime.now()}
  
      snapshot = firebase.post('/users', data)
      print snapshot['name']
  
      def callback_get(response):
          with open('/dev/null', 'w') as f:
              f.write(response)
      firebase.get_async('/users', snapshot['name'], callback=callback_get)
  
  
new_contents: import datetime
  
  from firebase.firebase import FirebaseApplication, FirebaseAuthentication
  
  
  if __name__ == '__main__':
      SECRET = '12345678901234567890'
      DSN = 'https://firebase.localhost'
      authentication = FirebaseAuthentication(SECRET, True, True)
      firebase = FirebaseApplication(DSN, authentication)
  
      firebase.get('/users', None,
                   params={'print': 'pretty'},
                   headers={'X_FANCY_HEADER': 'very fancy'})
  
      data = {'name': 'Ozgur Vatansever', 'age': 26,
              'created_at': datetime.datetime.now()}
  
      snapshot = firebase.post('/users', data)
      print(snapshot['name'])
  
      def callback_get(response):
          with open('/dev/null', 'w') as f:
              f.write(response)
      firebase.get_async('/users', snapshot['name'], callback=callback_get)
  
  
subject: print statement to print function. py3k doesn't have print statement.. and a little pep8 change