[Android] Fix packaging tool can't work on python3.0+.

1. Change print to print function.
2. Change "except" expression for try..catch
3. Add encode("UTF-8") for output of subprocess
4. Change "filter" and "file" uncompatible usage.

BUG=https://crosswalk-project.org/jira/browse/XWALK-766