Test pyformat