* Make sure that generating pyapi does not throw errors due to directory structureor linenos * Update basic.py