Initial code in ruby, need to build api module
finished python api module