main.py:
 used encode(utf-8) instead of str() because it breaks on non-ascii characters
 str() only used for id, which is an integer
changed var test in js to false