more refactoring

Move python scripts to riki