Update writemoment2.pyx