<s> import os <EOL> import sys <EOL> import cybox . bindings . cybox_core as core_binding <EOL> from cybox . core import Observables <EOL> def from_file ( filename ) : <EOL> cybox_obj = core_binding . parse ( os . path . abspath ( filename ) ) <EOL> return Observables . from_obj ( cybox_obj ) <EOL> def main ( ) : <EOL> if len ( sys . argv ) < <NUM_LIT:2> : <EOL> print ( "<STR_LIT>" ) <EOL> return <EOL> print ( from_file ( sys . argv [ <NUM_LIT:1> ] ) . to_json ( ) ) <EOL> if __name__ == "<STR_LIT:__main__>" : <EOL> main ( ) </s>
