Fixed a bug in separateClassLogs.py (caused by lack of type checking)