[python] fix parameter setting + added tuple special case and examples