Added sorting of lists by order set in tag settings. close #14
Fixed forever while loop bug. Updated python tags with: list, dict, tuple, unicode and instance. Changed string to bytestring. Added valtype to template.