plt.xticks()
may not work because it is linked to the values thus resulting in uneven spaces between ticks. Try changing the labels instead:
ax = plt.subplot()
ax.set_xticks(range(17), labels=[i for i in range(25) if i % 3 != 2])
Here is a sample output based on this example: