Fixed None type checking. s/if not/if foo is None/

Signed-off-by: Rex Tsai <chihchun@kalug.linux.org.tw>
Fixed base64 encoding & Changetset id.

Signed-off-by: Rex Tsai <chihchun@kalug.linux.org.tw>