python assign only if not none