Python-ize some statements