begin R primes library
separate tests from regular code
move python code to own subfolder