Modified Python init and fixed mesh bug