Fixed a bug returning not all material properties when accessing them.

Also fixed another bug occouring when no normals are provided in sample.py (lists do not have a any() method).