Fixed python submit errors