Made small changes:
 - regular express
 -added reverse operator argument
 -attempted to change everything to PEP8
 -renamed shift function and a few variables
  -added old-style time dependence
  -shortened test functions