[python] add basic code