Fix for python 2
Change dynamic conversion from py to always produce leading strided dimensions