use python way to set properties