json writes values only not definitions
added value sources for modules with writing py files
fixed for_json & for_module
minor corrections