Some Python exercises