old_contents: #!/usr/bin/env python
  import os
  import sys
  
  class Stream:
  	def __init__(self):
  		if not os.path.exists('.pydea'):
  			self.exists = False
  			return
  
  		self.exists = True
  		self.ideas = [Idea(f) for f in sorted(os.listdir('.'))
  			if os.path.splitext(f)[1] == '.md']
  
  class Idea:
  	def __init__(self, filename):
  		self.name = os.path.splitext(filename)[0]
  		self.source = open(filename).read()
  
  def main(args):
  	stream = Stream()
  	if len(args) == 1:
  		if args[0] == 'init':
  			if stream.exists:
  				print 'Already a pydea stream'
  				return
  
  			with open('.pydea', 'w+') as temp:
  				temp.write('* title = Testing\n')
  			print 'Created empty pydea stream'
  		elif args[0] == 'view':
  			if not stream.exists:
  				print 'Not a pydea stream'
  				return
  
  			print 'Finding pydeas...'
  	else:
  		if not stream.exists:
  			print 'Not a pydea stream'
  			return
  
  		print 'Adding pydea...'
  
  if __name__ == '__main__':
  	main(sys.argv[1:])
  
new_contents: #!/usr/bin/env python
  import bumpy
  import os
  import sys
  
  class Stream:
  	def __init__(self):
  		if not os.path.exists('.pydea'):
  			self.exists = False
  			return
  
  		self.exists = True
  		self.ideas = [Idea(f) for f in sorted(os.listdir('.'))
  			if os.path.splitext(f)[1] == '.md']
  
  class Idea:
  	def __init__(self, filename):
  		self.name = os.path.splitext(filename)[0]
  		self.source = open(filename).read()
  
  	def __repr__(self):
  		return '[Idea: {}]'.format(self.name)
  
  @bumpy.task
  def init():
  	'''Initialize a Pydea stream'''
  	if stream.exists: bumpy.abort('Already a Pydea stream')
  
  	with open('.pydea', 'w+') as temp:
  		temp.write('* title = Testing\n')
  	print 'Created empty Pydea stream'
  
  @bumpy.task
  def show():
  	'''View the Pydea stream'''
  	if not stream.exists: bumpy.abort('Not a Pydea stream')
  
  	print stream.ideas
  
  @bumpy.task
  def add(*args):
  	'''Add a new Pydea'''
  	if not stream.exists: bumpy.abort('Not a Pydea stream')
  
  @bumpy.default
  @bumpy.private
  def default(*args):
  	'''Add items to the Pydea stream or display it'''
  	if not stream.exists: bumpy.abort('Not a Pydea stream')
  
  	if args:
  		add(*args)
  	else:
  		show()
  
  @bumpy.setup
  @bumpy.private
  def setup():
  	global stream
  	stream = Stream()
  
  if __name__ == '__main__':
  	suppress = [key for key in bumpy.LOCALE if not key.startswith('abort')]
  	bumpy.config(cli = True, suppress = suppress)
  	bumpy.main(sys.argv[1:])
  
subject: Update to bumpy