Tabs to space

for i in `find * -name *.py`; do expand -t 4 $i > /tmp/s; mv /tmp/s $i; done
Remove trailing spaces

for i in `find * -name *.py`; do sed -i '' -e's/[[:space:]]*$//' $i; done
Fix issues with all __init__.py files

for i in `find * -name __init__.py`; do sed -i '' -e's/^import /from . mport /' $i; done