Shift a couple more geometry functions into shape.py
Add fragment for processing binary_string.