split Pyscape into module