File extension check removed.

Removed filename.split('.')[-1]='json' condition from line 7.