Added conditional python-based tests