Fixed erroneous Python syntax, thanks Livio