A python/js solution to converting coursesmart swf ebooks to pdf ebooks