modern Python best practices