test for empty code
fix parsing empty codepath
.gitignore to ignore *.pyc files
update copyright
prevent UnicodeDecodeError when decoding urllib.unquote on python2