Fixed Python 3.3 compatibility when submitting inline model