move python code to py
renew tests