Pycco API interface

Made the interface a bit friendlier to use pycco programmatically.