update moodle2edx - now uses a python class, cleaned up code, accepts command line args